home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / doom / quake2.zip / QUEST091.ZIP / GO4.BAT < prev    next >
DOS Batch File  |  1996-10-16  |  880b  |  46 lines

  1. @echo off
  2. rem
  3. rem ******** Quest Quake startup batch file ***********
  4. rem ******** Fast No-Error Version
  5. rem
  6.     set CurDrive=c:
  7.     set CurDir=\prog\quest
  8.     set QuakeDrive=d:
  9.     set QuakeDir=\quake
  10.     set BSPPath=d:\quest\qbsp_win
  11.  
  12. md quest.tmp
  13. copy %1.map quest.tmp
  14. copy %1.bsp quest.tmp
  15. cd quest.tmp
  16.  
  17. :OkQBSP
  18. rem ----------
  19. rem Light Step
  20. rem ----------
  21. %BSPPath%\light %1
  22. if errorlevel 1 goto BailLight
  23. goto OkLight
  24. :BailLight
  25. echo Error building Lightmaps!  Hit SPACE to abort or wait to continue...
  26. wait 5
  27. if errorlevel 2 goto Bailout
  28.  
  29. :OKLight
  30. copy %1.bsp %QuakeDrive%%QuakeDir%\id1\maps > nul
  31. copy %1.bsp %CurDrive%%CurDir% > nul
  32. move %1.pts %QuakeDrive%%QuakeDir%\id1\maps > nul
  33. %QuakeDrive%
  34. cd %QuakeDir%
  35. quake +map %1
  36. %CurDrive%
  37. cd %CurDir%
  38. goto Exit
  39.  
  40. :Bailout
  41. cd..
  42. deltree /y quest.tmp
  43. :Exit
  44. deltree /y quest.tmp
  45. echo.
  46.